-- GENERATED SPELL FOR [Private Hendel] --


function spell0_4966(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4966', 15000, 1)
end

function Sorts_4966(pUnit, Event)
local choix_sorts_4966 = math.random(0, 0)
if choix_sorts_4966 == 0 then
pUnit:RegisterEvent('spell0_4966', 1, 1)
end
end

function mob4966_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4966', math.random(1500, 3000), 1)
end

function mob4966_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4966_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4966_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4966, 1, 'mob4966_Action')
RegisterUnitEvent(4966, 2, 'mob4966_Leave')
RegisterUnitEvent(4966, 3, 'mob4966_Kill')
RegisterUnitEvent(4966, 4, 'mob4966_Die')
